<!-- 阅读需知查询和修改模态框 -->
<div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">阅读需知维护— <span *ngIf="operate=='view'">查看</span><span *ngIf="operate=='edit'">修改</span> </h4>
      </div>
      <div class="modal-body">
          <form class="form-horizontal">
            <div class="form-group">
              <label class="col-lg-2 text-right">操作点：</label>
              <div class="col-lg-9">
                <input class="form-control" name="sOperpoint" maxlength="50" [(ngModel)]="singleInfo.sOperpoint" disabled>
              </div>
            </div> 
            <div class="form-group" *ngIf="operate=='view'">
              <label class="col-lg-2 text-right"><span class="span-style">*</span>需知摘要：</label>
                <div class="col-lg-9">
                  <textarea class="form-control" name="sTitle" [(ngModel)]="singleInfo.sTitle" style="resize: none;" cols="20" rows="5" disabled></textarea>
                </div>
            </div>  
            <div class="form-group" *ngIf="operate=='edit'">
              <label class="col-lg-2 text-right"><span class="span-style">*</span>需知摘要：</label>
                <div class="col-lg-9">
                  <textarea class="form-control" name="sTmpTitle" maxlength="2000" [(ngModel)]="singleInfo.sTmpTitle" style="resize: none;" cols="20" rows="5"></textarea>
                </div>
            </div>  
            <div class="form-group" *ngIf="operate=='view'">
              <label class="col-lg-2 text-right"><span class="span-style">*</span>需知内容：</label>
              <div class="col-lg-9">
                <textarea class="form-control" name="sContent" [(ngModel)]="singleInfo.sContent" style="resize: none;" cols="20" rows="5" disabled></textarea>
              </div>
            </div>
            <div class="form-group" *ngIf="operate=='edit'">
              <label class="col-lg-2 text-right"><span class="span-style">*</span>需知内容：</label>
              <div class="col-lg-9">
                <textarea class="form-control" name="sTmpContent" maxlength="2000" [(ngModel)]="singleInfo.sTmpContent" style="resize: none;" cols="20" rows="5"></textarea>
              </div>
            </div>
          </form>
      </div>
      <div class="modal-footer">
          <button type="button" class="btn btn-primary"  *ngIf="operate=='edit'" (click)="updateInfo()">
              <i class="fa fa-save">保存</i></button>
            <button *ngIf="operate=='edit'" type="button" class="btn btn-default pull-left" data-dismiss="modal">退出</button>
            <button *ngIf="operate=='view'" type="button" class="btn btn-default center-block" data-dismiss="modal">退出</button>
      </div>
    </div>
</div>